extern crate mnist;

use std::env;
use std::fs::File;

fn dump_file(filename: &String) {
    let mut file = File::open(filename).unwrap();
    let header = mnist::header(&mut file).unwrap();
    println!("-- {} --\n{:?}", filename, header);
}

fn main() {
    for filename in env::args().skip(1) {
        dump_file(&filename);
    }
}
